<%--
 *  File:    ProdEditPack.jsp
 *  @Author: Langerwang 
 *  Date:    2001/01/14
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.ProdEditPack");  
  String privilegeCode = "10203,L203";
  String strModuleName = "PCM";
  String contextPath = request.getContextPath();
%>



<%
  String strProdId = (String)request.getParameter("prodid");  
  if(strProdId == null)
  {
    strProdId = (String)((HashMap)session.getAttribute("productinfo")).get("prodid").toString();
  }    
  Vector prodPacks = (Vector)pageContext.getAttribute("allprodpack");
  if(prodPacks == null) prodPacks = new Vector();
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title>ProdEditPack</title>
<PageFlow:CheckPageFlow pageName="prodeditpack"/>
<%@ include file="/inc/InitEdit.inc" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="../../js/FuncLib.js"></script>
<script language="JavaScript">

function page_back()
{
  parent.up.page_goback();
}


</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border=0 cellpadding=0 cellspacing=0 width="100%">
  <tr>
    <td valign=top>
      <table border=0 cellpadding=1 cellspacing=0 width="100%">
       <tbody>
   <tr> 
          <td bgcolor=#000000 style="PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px"> 
            <table bgcolor=#000000 border=0 cellpadding=0 cellspacing=0 width="100%">
              <tr> 
                <td  bgcolor=#ffffff style="PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px"> 
                  <div id=div1 style="HEIGHT: 450px; OVERFLOW: auto">
                  
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="0">
          <tr> 
            <td colspan="12" class="deepblue-left"> <img src="../../images/<%= strLanguageCode %>/quote.gif">
              <%= label.getLabelName("L_PackagingInfo") + label.getLabelName("L_Colon") %> </td>
          </tr>
          <tr> 
            <td class="td-listrom" ><%= label.getLabelName("L_PackagingType") %></td>
           	<td class="td-listrom" ><%= label.getLabelName("L_PackageBox") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_Length") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_Width") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_Height") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_LengthUnit") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_Volume") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_VolumeUnit") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_Weight") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_WeightUnit") %></td>
            <td class="td-listrom" ><%= label.getLabelName("L_ProductQuantity") %></td>            
          </tr>
          <%
            int i = 0;
            String strClassType = new String();
            String qtyFormat = (String)session.getAttribute("qtyformat");
          %>
            <logic:iterate id="prodpack" collection="<%= prodPacks %>">   
          <%
            HashMap packMap = (HashMap)pageContext.getAttribute("prodpack");  
            if(i%2 == 1){
              strClassType = "td-listrom";
            }else{                    
              strClassType = "";
            } 
            i++;        
          %>                  
        <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='none'" class="none">
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%=JspHelper.filterNull( packMap.get("containertypename") )%></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%=JspHelper.filterNull( packMap.get("containername") )%></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("length"),qtyFormat) %></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("width"),qtyFormat) %></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("height"),qtyFormat) %></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%=JspHelper.filterNull( packMap.get("lengthumname") )%></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("volume"),qtyFormat) %></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%=JspHelper.filterNull( packMap.get("volumeumname") )%></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("weight"),qtyFormat) %></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%=JspHelper.filterNull( packMap.get("weightumname") )%></td>
          <td class="<%=JspHelper.filterNull( strClassType )%>">&nbsp;<%= OvalTools.numberToString((Number)packMap.get("qty"),qtyFormat) %></td>
        </tr>
          </logic:iterate>
        </table>
        </div> 
      </td>
    </tr>  
   </table>     
  </td>
 </tr>
  </tbody>
</table>
   </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
   <td class="td_center">
     <a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a>
  </td>
  </tr>
</table>
</body>
</html>


